﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    public  class Dog :IAnimal
    {
        //显示实现接口
        void IAnimal.AnimalName()
        {
            Console.WriteLine("狗");
        }

        //显示实现接口
        void IAnimal.Yelps()
        {
            Console.WriteLine("叫声：汪汪");
        }

        //隐式实现接口
        public  void Action()
        {
            Console.WriteLine("行为：会咬人");
        }
        
    }

    

}
